import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
export const columns: BasicColumn[] = [
  {
    title: '导航页签',
    dataIndex: 'tagName',
    width: 100,
    ellipsis: true,
    resizable: true,
  },
  {
    title: '链接',
    dataIndex: 'tagUrl',
    width: 100,
    ellipsis: true,
    resizable: true,
  },
  {
    title: '顺序号',
    dataIndex: 'tagOrder',
    width: 100,
    ellipsis: true,
    resizable: true,
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'tagName',
    label: '名称',
    required: true,
    component: 'Input',
    colProps: { span: 24 },
    componentProps: {
      readonly: false,
    },
  },
  {
    field: 'tagNewName',
    label: '名称',
    required: true,
    component: 'Input',
    colProps: { span: 24 },
    componentProps: {
      readonly: false,
    },
  },
  {
    field: 'tagType',
    label: '类型',
    component: 'Select',
    colProps: { span: 24 },
    required: true,
    defaultValue: 'module',
    slot: 'tagType',
  },
  {
    field: 'tagOrder',
    label: '顺序号',
    component: 'InputNumber',
    required: true,
    colProps: { span: 24 },
  },
];

export const tagTypeOptions = [
  {
    label: '模块',
    value: 'module',
  },
  {
    label: '链接',
    value: 'link',
  },
];
